package org.dromara.business.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.business.domain.Goods;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;

import java.io.Serial;
import java.math.BigDecimal;


/**
 * 任务视图对象 goods
 *
 * @author zlj
 * @date 2024-08-01
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = Goods.class)
public class GoodsVo extends Goods {

    @Serial
    private static final long serialVersionUID = 1L;

    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "url")
    private String urlLink;

    @Translation(type = TransConstant.USER_ID_TO_NICKNAME, mapper = "createBy")
    private String userName;

    private BigDecimal minAmount;
}
